package com.xxh.message.init;

import com.corundumstudio.socketio.SocketIOServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * 应用初始化
 */
@Component
public class appRunner implements CommandLineRunner {
    @Autowired
    private SocketIOServer server;
    @Override
    public void run(String... args) throws Exception {
        System.out.println("websocket服务开启");
        server.start();

    }
}
